package io.yunho.yunho.interview.two.java8.webflux.holedemo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author: yunho
 * @date: 2021/5/12 16:57
 * @description:
 */
//相当于关系型数据库中的表
@Document(collection = "user")
@Data

public class User {
    @Id
    private String id;

    private String username;

    private int age;

    private String password;

    private String token;

}
